import request from '@/router/axios'

export function fetchActivityList(query) {
  return request({
    url: "/admin/activity/list",
    method: "get",
    params: query
  });
}

export function putActivity(query) {
  return request({
    url: "/admin/activity/put",
    method: "post",
    data: query
  });
}

export function deleteActivity (query) {
  return request({
    url: '/admin/activity/delete',
    method: 'get',
    params: query
  })
}

export function fetchActivityApplyList(query) {
  return request({
    url: "/admin/activity/applyList",
    method: "get",
    params: query
  });
}

